package com.itheima.Service.impl;

import com.itheima.Dao.BookDao;
import com.itheima.Service.BookService;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class BookServiceimpl implements BookService {
    @Autowired
    @Qualifier("bookDao")
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Value("${name}")
    private String name;
    @Override
    public void save() {
        System.out.println("我是BookServiceimpl");
        bookDao.save();
    }


}
